package pers.cz;

import pers.cz.utils.PartitionUtil;
import org.springframework.boot.test.context.SpringBootTest;
import org.testng.annotations.Test;

import javax.script.ScriptException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @program: PostGirl-panent
 * @description: Main
 * @author: Cheng Zhi
 * @create: 2022-04-21 23:16
 **/
@SpringBootTest
public class Main {

    @Test
    public void test1() throws ScriptException, IOException {

        PartitionUtil partitionUtil = new PartitionUtil();
        partitionUtil.initPartitionConfig();
        Map params = null;
        Map<String, Object[]> notNullParams =
                params != null ? params : new HashMap<String, Object[]>();
        partitionUtil.getTableName("test_partition",notNullParams, null);
    }
}
